package models_report

type GameDiceFlow struct {
	Id            int64   `gorm:"column:id;primaryKey;autoIncrement"`
	Uid           int64   `gorm:"column:user_id;index"`
	Ctime         int64   `gorm:"column:ctime;type:int(10)"`
	AwardAmount   int     `gorm:"column:award_amount;type:int(9)"`
	BeforeBalance int     `gorm:"column:before_balance;type:int(9)"`
	AfterBalance  int     `gorm:"column:after_balance;type:int(9)"`
	Choices       int     `gorm:"column:choices;type:int(10);comment:'选择范围'"`
	Tag           string  `gorm:"column:tag;type:varchar(40);comment:批次标识"`
	BetNum        int     `gorm:"column:bet_num;type:int(10);comment:'下注金额'"`
	IsRollDown    bool    `gorm:"column:is_roll_down;type:tinyint(10);comment:'低/高区间 [1-choices]/[choice-totalNumbers]'"`
	RollNum       int     `gorm:"column:roll_num;type:int(10);comment:'掷奖结果'"`
	Odds          float64 `gorm:"column:odds;type:DECIMAL(10,2);comment:'赔率'"`
	IsReward      bool    `gorm:"column:is_reward;type:int(10);comment:'是否中奖'"`
	RewardNum     int     `gorm:"column:reward_num;type:int(10);comment:'中奖金额(算上本金)'"`
}

func (*GameDiceFlow) TableName() string {
	return "game_dice_flow"
}
